package com.docking.heylo.task;

import com.docking.heylo.dao.entity.Appointment;
import com.docking.heylo.service.IAppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
public class OrderTask {

    @Autowired
    private IAppointmentService appointmentService;

    /***
     * 自动确认订单
     */
    @Scheduled(cron = "0 */1 * * * ?")
    public void automaticConfirmation(){
        appointmentService.automaticConfirmation();
    }











}
